home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / basic / ace24dist.lha / ace24.lha / include / devices / conunit.h < prev    next >
C/C++ Source or Header  |  1996-09-10  |  3KB  |  114 lines

  1. #ifndef DEVICES_CONUNIT_H
  2. #define DEVICES_CONUNIT_H 1
  3. /*
  4. ** conunit.h for ACE Basic
  5. **
  6. ** Note: Translated to ACE by ConvertC2ACE
  7. **       @ MapMeadow Software, Nils Sjoholm
  8. **
  9. **
  10. ** Date: 09/03/95
  11. **
  12. **
  13. */
  14.  
  15. /*
  16. ** This are the StructPointer defines for conunit.h
  17. */
  18. #ifndef ConUnitPtr
  19. #define ConUnitPtr ADDRESS
  20. #endif
  21. /*
  22. ** End of StructPointer defines for conunit.h
  23. */
  24.         
  25. #ifndef EXEC_TYPES_H
  26. #include    <exec/types.h>
  27. #endif
  28.  
  29. #ifndef EXEC_PORTS_H
  30. #include    <exec/ports.h>
  31. #endif
  32.  
  33. #ifndef DEVICES_CONSOLE_H
  34. #include    <devices/console.h>
  35. #endif
  36.  
  37. #ifndef DEVICES_KEYMAP_H
  38. #include    <devices/keymap.h>
  39. #endif
  40.  
  41. #ifndef DEVICES_INPUTEVENT_H
  42. #include    <devices/inputevent.h>
  43. #endif
  44.  
  45.  
  46. /* ---- console unit numbers for OpenDevice() */
  47. #define CONU_LIBRARY    -1  /* no unit,  just fill in IO_DEVICE field */
  48. #define CONU_STANDARD   0   /* standard unmapped console */
  49.  
  50. /* ---- New unit numbers for OpenDevice() - (V36) */
  51.  
  52. #define CONU_CHARMAP    1   /* bind character map to console */
  53. #define CONU_SNIPMAP    3   /* bind character map w/ snip to console */
  54.  
  55. /* ---- New flag defines for OpenDevice() - (V37) */
  56.  
  57. #define CONFLAG_DEFAULT         0
  58. #define CONFLAG_NODRAW_ON_NEWSIZE   1
  59.  
  60.  
  61. #define PMB_ASM     (M_LNM+1)   /* internal storage bit for AS flag */
  62. #define PMB_AWM     (PMB_ASM+1) /* internal storage bit for AW flag */
  63. #define MAXTABS     80
  64.  
  65.  
  66. STRUCT  ConUnit  
  67.     MsgPort cu_MP 
  68.     /* ---- read only variables */
  69.     WindowPtr  cu_Window   /* intuition window bound to this unit */
  70.     SHORTINT    cu_XCP      /* character position */
  71.     SHORTINT    cu_YCP 
  72.     SHORTINT    cu_XMax         /* max character position */
  73.     SHORTINT    cu_YMax 
  74.     SHORTINT    cu_XRSize       /* character raster size */
  75.     SHORTINT    cu_YRSize 
  76.     SHORTINT    cu_XROrigin     /* raster origin */
  77.     SHORTINT    cu_YROrigin 
  78.     SHORTINT    cu_XRExtant     /* raster maxima */
  79.     SHORTINT    cu_YRExtant 
  80.     SHORTINT    cu_XMinShrink   /* smallest area intact from resize process */
  81.     SHORTINT    cu_YMinShrink 
  82.     SHORTINT    cu_XCCP         /* cursor position */
  83.     SHORTINT    cu_YCCP 
  84.  
  85.     /* ---- read/write variables (writes must must be protected) */
  86.     /* ---- storage for AskKeyMap and SetKeyMap */
  87.     KeyMap cu_KeyMapStruct 
  88.     /* ---- tab stops */
  89.     STRING cu_TabStops SIZE 160  /*  MAXTABS*SIZEOF(SHORTINT) */  /* 0 at start,  &Hffff at END of LIST */
  90.  
  91.     /* ---- console rastport attributes */
  92.     BYTE    cu_Mask 
  93.     BYTE    cu_FgPen 
  94.     BYTE    cu_BgPen 
  95.     BYTE    cu_AOLPen 
  96.     BYTE    cu_DrawMode 
  97.     BYTE    cu_Obsolete1    /* was cu_AreaPtSz -- not used in V36 */
  98.     ADDRESS    cu_Obsolete2    /* was cu_AreaPtrn -- not used in V36 */
  99.     STRING cu_Minterms SIZE 8   /* console minterms */
  100.     TextFontPtr  cu_Font 
  101.     BYTE    cu_AlgoStyle 
  102.     BYTE    cu_TxFlags 
  103.     SHORTINT   cu_TxHeight 
  104.     SHORTINT   cu_TxWidth 
  105.     SHORTINT   cu_TxBaseline 
  106.     SHORTINT    cu_TxSpacing 
  107.  
  108.     /* ---- console MODES and RAW EVENTS switches */
  109.     STRING cu_Modes SIZE 3  /* (PMB_AWM+7)/8 */     /* one bit per mode */
  110.     STRING cu_RawEvents SIZE 4  /* (IECLASS_MAX+8)/8 */
  111. END STRUCT 
  112.  
  113. #endif  /* DEVICES_CONUNIT_H */
  114.